﻿<%@ Page 
  Language="C#" 
  AutoEventWireup="true" 
  CodeFile="demoLabel.aspx.cs" 
  Inherits="Label_demoLabel" %>

<!DOCTYPE 
  html 
  PUBLIC 
  "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
    <script type="text/javascript">
      var i = 1;
      $(function() {

        $('#ClientSideButton').bind('click', function() {
          i = i + 1;
          $('#lb').text(i.toString());
          $('#tb').val(i.toString());
          return false;
        });
      });
    </script>
</head>
<body vlink="#ff0000">
    <form id="form1" runat="server" >
    <div>
      <asp:Label 
        ID="lb"
        runat="server"></asp:Label>
      
      <asp:TextBox 
        ID="tb"
        runat="server"></asp:TextBox>
      <br />
        
      <asp:Button ID="ClientSideButton" Text="ClientSideButton" runat="server" />

      <br />

      <asp:Button ID="PostBackButton" Text="PostBackButton" runat="server" 
        onclick="PostBackButton_Click" />
      
      <br />
      
      <asp:Label 
        ID="out_lb"
        runat="server" />
      
      <asp:Label 
        ID="out_tb"
        runat="server" />
      
    </div>
    </form>
</body>
</html>
